# This code is part of the MWP System
# Copyright (c) 2012 Benjamin Lubin (blubin@bu.com) 
# Published under and subject to the GPLv2 license available at http://www.gnu.org/licenses/gpl-2.0.html

'''
Created on Dec 18, 2012
@author: blubin
'''

from frontend.roleApplication import RoleApplication;
from frontend.form import Type;

class DrugInVitro(RoleApplication):
    """ The Physician User Interface """

    def __init__(self):
        super(DrugInVitro, self).__init__("DrugDiscovery", "Ephys");
        self.register_transition_step("InVitro", self.invitro_form_creator, name_fields=["sequence","moleculename"]);
        
    def invitro_form_creator(self, stepname, form):
        form.add_html_label('<B>Begin Patch Clamp Experiment</B>')
        form.add_field(Type.BOOLEAN, "isinvitroapproved", labeltext="Is in vitro approved?");
    
if __name__ == '__main__':
    app = DrugInVitro();
    app.MainLoop();